<div class="top">
    <div class="guild">
        <div class="guild_a"><?php echo service_menu::getNameByID($currentMenuID,'首页');?></div>
    </div>
    <div class="guilds"><?php echo fetch('nav');?></div>
</div>
<script type="text/javascript" src="<?php echo public_path('js/admin/jquery.form.js');?>"></script>
<script type="text/javascript" src="<?php echo public_path('js/admin/jquery.validate.js');?>"></script>
<script type="text/javascript" src="<?php echo public_path('js/admin/jquery.admin.js');?>"></script>
<div class="demand">
	<form action="<?php echo url('demand/index');?>" method="post" id="addForm">
		<table>
			<tr>
				<td align="right" width="100"><span style="color:red; margin-left: 6px;">*</span>姓名:</td>
				<td align="left">
					<input type="text" class="required" name="demand[name]" value="" />
				</td>
			</tr>
			<tr>
				<td align="right"><span style="color:red; margin-left: 6px;">*</span>联系电话:</td>
				<td align="left">
					<input type="text" class="required" name="demand[tel]" value="" />
				</td>
			</tr>
			<tr>
				<td align="right">E-mail:</td>
				<td align="left"><input type="text" name="demand[email]" value="" /></td>
			</tr>
			<tr>
				<td align="right">地址:</td>
				<td align="left"><input type="text" name="demand[address]" value="" /></td>
			</tr>
			<tr>
				<td align="right"><span style="color:red; margin-left: 6px;">*</span>业务需求:</td>
				<td align="left">
					<textarea class="required" name="demand[content]" cols="60" rows="10"></textarea>
				</td>
			</tr>
			<tr>
				<td align="right"></td>
				<td align="center"><input type="submit" onClick="CKupdate();" value="提交" id="catesub" class="inputbg" /><input id="reset" type="reset" value="重置" class="inputbg"/></td>
			</tr>
		</table>
	</form>
</div>
<script type="text/javascript">
$(document).ready(function(){	
	submitForm("#addForm",{
		dataType:'json',
		success:function(data){
				if(data.i=='ok'){
					alert('提交成功');
					$("#reset").click();
				}else{
					alert(data.i);
				}
			},
	});
});
</script>
